<?php $suattr = $sf_user->getAttribute('suattr') ?>
<div id="bar_practil">
  <form id="frmLogin" action="<?php echo url_for('@login') ?>" method="post">
      <input type="hidden" name="hdUri" value="<?php echo $sf_request->getUri() ?>" />
      <div style="display: block;">
          <div style="display: inline-block;vertical-align: middle;">
              <?php echo image_tag('implementacion/logo_practil.gif') ?>
          </div>
          <div style="display: inline-block;vertical-align: middle;">
              <a href="<?php echo url_for(sfConfig::get('app_url_opinics')) ?>">
                  <?php echo image_tag('implementacion/btn_opinion.gif') ?></a>
          </div>
          <?php if($sf_user->isAuthenticated()){ ?>
          <div style="display: inline-block;vertical-align: middle;">
              <a href="javascript:void(0)" style="color: white;">
                  <?php echo $suattr[2].' '.$suattr[3] ?></a>
          </div>
          <div style="display: inline-block;vertical-align: middle;">
              <a href="<?php echo url_for('@dashboard') ?>" style="color: white;">
                  Configuraci&oacute;n</a>
          </div>
          <div style="display: inline-block;vertical-align: middle;">
              <a class="practil_btn_bg" tabindex="3"  href="<?php echo url_for('@logout') ?>" onclick="$('#frmLogin').submit();">
                  Salir</a>
          </div>
          <?php } ?>
          <?php if(!$simpleSAMLAuth->isAuthenticated()){ ?>
          <div style="display: inline-block;vertical-align: middle;">
              <a class="practil_btn_bg"  href="<?php echo url_for('@sf_saml_signin') ?>">
                  Entrar</a>
          </div>
          <?php }else{ ?>
          <div style="display: inline-block;vertical-align: middle;">
              <a class="practil_btn_bg"  href="<?php echo url_for('@sf_saml_signout') ?>">
                  Salir</a>
          </div>
          <?php } ?>
      </div>
  </form>
</div>